package cn.topcodes.tcsf.admin.service.org;

import cn.topcodes.tcsf.admin.commons.generic.IGenericService;
import cn.topcodes.tcsf.admin.domain.entity.SysRole;

import java.util.List;

/**
 * 系统角色管理服务接口
 * @author Leo
 */
public interface SysRoleService extends IGenericService<SysRole> {

    void assignPerm(Long roleId, Long[] permIds);

    Long getDeveloperRoleId();

    List<SysRole> select(Long userId);

    List<String> getRoleCode(Long userId);

    boolean hasRole(Long userId, String roleCode);
}
